package com.huijie.core.constant;

/**
 * @ClassName Constants
 * @Description 系统管理平台公共常量定义
 * @Author Alex
 * @Date 2017/12/14 18:56
 * @Version 1.0
 */
public class Constants {

//    public static final String HEADER_JWT_TOKEN = "jwt_token";

    /**
     * JWT过期时间的KEY
     */
    public static final String KEY_JWT_PERIOD = "JWT_PERIOD";

    /**
     * JWT白名单的KEY
     */
    public static final String KEY_JWT_WHITE_LIST = "JWT_WHITE_LIST";

    /**
     * 初始化密码的KEY
     */
    public static final String KEY_INIT_LOGIN_PWD = "INIT_LOGIN_PWD";
    /**
     * 重置密码的KEY
     */
    public static final String KEY_RESET_LOGIN_PWD = "RESET_LOGIN_PWD";


    /**
     * 用户登录名称
     */
    public static final String SESSION_KEY_LOGIN_NAME = "LOGIN_NAME";
    /**
     * 初始化密码
     */
    public static final String INIT_LOGIN_PWD = "123456";
    /**
     * 重置后密码
     */
    public static final String RESET_LOGIN_PWD = "12345678";


    /**
     * ip来源apiUrl
     **/
    public static final String IP_INFO_API_URL = "http://ip.taobao.com/service/getIpInfo.php";
    /*WMS appSecret*/
    /**
     * 入库
     */
    public static final String METHOD1 = "ASNCONFIRM";

    /**
     * 出库
     */
    public static final String METHOD2 = "ORDERCONFIRM";

    public static final String CLIENT_CUSTOMERID = "FLUXWMSJSON";

    public static final String CLIENT_DB = "FLUXWMSJSONDB";

    public static final String MESSAGEID = "ASNCONFIRM";

    public static final String APPTOKEN = "80AC1A3F-F949-492C-A024-7044B28C8025";

    public static final String APPKEY = "test";

    public static final String APP_SECRET = "";

    /**
     * API层异常信息
     */
    public static final String API_EXCETION_MESSAGE = "方法内部错误";

    /**
     * API通用返回码对应的信息-传参不合法
     */
    public static final String API_RESPONSE_VALID_ERROR_MESSAGE = "通用：传参不合法";

    /**
     * API通用返回码对应的信息-API错误（系统异常）
     */
    public static final String API_RESPONSE_SYSTEM_EXCEPTION_MESSAGE = "通用：API错误";

    /**
     * 设置返回值类型和返回值字符编码
     */
    public static final String API_RESPONSE_BUS_MESSAGE = "业务：";

    /**
     * 设置请求类型
     */
    public static final String API_REQUEST_CONSUMES = "application/json";

    /**
     * 设置返回值类型和返回值字符编码
     */
    public static final String API_RESPONSE_PRODUCES = "application/json; charset=utf-8";

    /**
     * 分割符：冒号/冒号/"#"号
     */
    public static final String SAPERATOR_COLON = ":";
    public static final String SAPERATOR_COMMA = ",";
    public static final String SAPERATOR_HASHTAG = "#";

    /**
     * 提示删除条目
     */
    public static final String TIPS_DEL = "updates:";
    /**
     * string字符串作为key去存/取对象
     */
    public static final String STR_KEY_DATA = "DATA";
    public static final String STR_KEY_DATA_LOWER = "data";
    public static final String STR_KEY_CODE = "CODE";
    public static final String STR_KEY_CODE_LOWER = "code";
    public static final String STR_VALUE_S = "S";

    /**
     * 0:正常,1:失效  状态
     */
    public static final Integer STATUS_OF_0 = 0;
    public static final Integer STATUS_OF_1 = 1;

    public static final Integer NUMBER_INTERGER_2 = 2;
    /**
     * 开关状态   0：开，1：关
     */
    public static final Short STATUS_0 = 0;
    public static final Short STATUS_1 = 1;

    /**
     * Y:是 N：否
     */
    public static final String STATUS_Y = "Y";
    public static final String STATUS_N = "N";

    /**
     * tinyint的范围 0-255,最小范围值0可以用STATUS_OF_0来替代
     */
    public static final Integer TINYINT_MAX = 255;
    /**
     * 资源名称最大长度
     */
    public static final Integer RES_NAME_LENGTH = 50;
    /**
     * 给用户分配角色时id数组允许传值为-1
     */
    public static final Integer ID_MINIMUN = -1;

    /**
     * 门店编号只有4位
     */
    public static final int SHOP_CODE_LENGTH = 4;
    /**
    * 款号与sku编号相差4位
    */
    public static final int DIFFERENT_NUM_THREE = 3;

    public static final String COMMA_SYMBOL = ",";
    /**
     * sku装箱数量更新后台指定用户
     */
    public static final String SKU_QTY_CHANGE_USERNAME = "ADMIN";

}
